package ncsutest;

public abstract class NCSUCalibrationMonitor {

	private NCSUCalibrationBase calibration;

	public NCSUCalibrationMonitor(NCSUCalibrationBase calibration) {
		this.calibration = calibration;
	}

	public void calibrationStart(int i) {
	}

	public void calibrationFinish(int i) {
	}
	

	protected int calibrationNumberToIndex(int number) {
		int[] calibrationsToRun = calibration.calibrationsToRun();
		
		for (int i = 0; i < calibrationsToRun.length; i++) {
			if (calibrationsToRun[i] == number) return i;
		}
		return -1;
	}
}
